package com.work.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 说说缓存图片
 * @Date 2024-05-15 21:09:05
 * @author hjj
 */
@Data
@TableName("community_image")
@ApiModel(value="CommunityImage对象", description="说说缓存图片")
public class CommunityImage implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[说说id]不能为空")
    @ApiModelProperty("说说id")
    private Integer communityId;

    @NotBlank(message="[图片url]不能为空")
    @Size(max= 128,message="编码长度不能超过128")
    @ApiModelProperty("图片url")
    private String imgUrl;

}
